





#ifndef _LDP_H_
#define _LDP_H_



#define ldp_MAGIC 'K'
#define IOCTL_LDP_INTERLOCK_READ_1		_IOW	(ldp_MAGIC, 1, int)
#define IOCTL_LDP_INTERLOCK_READ_2		_IOW	(ldp_MAGIC, 2, int)

#define IOCTL_LDP_ENABLE_WRITE_1		_IOW	(ldp_MAGIC, 3, int)
#define IOCTL_LDP_ENABLE_WRITE_2		_IOW	(ldp_MAGIC, 4, int)

#define IOCTL_LDP_LM_FAULT_READ_1		_IOW	(ldp_MAGIC, 5, int)
#define IOCTL_LDP_LM_FAULT_READ_2		_IOW	(ldp_MAGIC, 6, int)

#define IOCTL_LDP_TEMP_FAULT_READ_1		_IOW	(ldp_MAGIC, 7, int)
#define IOCTL_LDP_TEMP_FAULT_READ_2		_IOW	(ldp_MAGIC, 8, int)

#define IOCTL_LED_WRITE					_IOW	(ldp_MAGIC, 9, int)



#ifdef PRINT_OPEN 
#define PRINT_OPEN_LDP	0
#else
#define PRINT_OPEN_LDP	1
#endif



extern int LdpInit(void);

extern int LdpLedSet(int arg);

extern int LdpEnableSet(unsigned int channel, int arg);

extern int LdpLMFaultRead(unsigned int channel);

extern int LdpInterLockRead(unsigned int channel);

extern int LdpTempFaultRead(unsigned int channel);


#endif











